#ifndef __MYSTDIO_H__ 
#define __MYSTDIO_H__ 


#include <stdio.h>



#define SIZE 1024

#define FLUSH_NOW 1
#define FLUSH_LINE 2
#define FLUSH_ALL 3





typedef struct IO_FILE
{
    int fileno;
    int flag;
    int out_pos;;
    char outbuffer[SIZE] ;


}_FILE;


_FILE* _fopen(const char* filrname , char* flag);
int _fwrite( _FILE* fp, const char *s ,int len);
void _close(_FILE * fp);


#endif 

